using System;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;
using Orchard.Environment;
using Orchard.Environment.Extensions;
using Orchard.UI.Resources;
using EMS.Calendar.Models;
using EMS.Calendar.Services;
using System.Collections.Generic;
using Orchard.Localization;

namespace EMS.Calendar.Handlers {
    public class CalendarHandler : ContentHandler {

        public CalendarHandler(IRepository<CalendarPartRecord> repository) {
            T = NullLocalizer.Instance;
            Filters.Add(StorageFilter.For(repository));
        }

        public Localizer T { get; set; }
    }
}
